/*
  StepperController.h - - Stepper library for Wiring/Arduino - Version 1.0

	library     (1.0) by Derek Van Veen CNET
	
	Used to control one or more single axis stepper motor contorllers. 


	Provides:
		- Step(s)
		- Direction

	Use:
		- StepXaxis.steps(-Long to +Long);		
		- StepXaxis.offset(-Long to +Long);		

*/

// Use once
#ifndef Stepper_h
#define Stepper_h
  
// Start
class StepperController
	{
	public:
		StepperController(int Steps_Per_Revolution, int pin_for_pulse, int pin_for_direction);

		void setMaxSpeed(int max_Speed);
		void setSpeed(int to_Speed);
		void step(long number_of_steps);
		void offset(long number_of_steps);
		long location();

	private:
		int direction;
		int speed;

		unsigned long step_delay
		
		long number_of_steps;
		long current_step;
		long start_of_step;

		int pin_for_pulse;
		int pin_for_direction;

	};

#end if